﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using IdentityMine.Windows.Eventing;

namespace SilverlightApplication1
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			// Required to initialize variables
			InitializeComponent();

            // This style works
            //EventManagerEx.RegisterClassHandler(typeof(MainPage), UserControl1.HoverEnterEvent, new UserControl1.HoverEnterRoutedEventHandler(OnHover));
		}
		
        void OnHover(object sender, RoutedEventArgsEx args)
        {
            tbOutput.Text="Got it !";
        }

        private void OnLoaded(object sender, System.Windows.RoutedEventArgs e)
        {
            UserControl1.AddHoverEnterHandler(this, new UserControl1.HoverEnterRoutedEventHandler(OnHover));
        }
		
	}
}